package vault

import "gitee.com/git_public/vfaith/builtin/bean"

// region BundleList

type BundleList[T bean.IxBaseEntity] struct {
	*BundleBase
	*QueryParam `json:"queryParam"`
	List        []T `json:"data"`
}

func NewBundleList[T bean.IxBaseEntity](query *QueryParam, list []T) *BundleList[T] {
	return &BundleList[T]{
		BundleBase: &BundleBase{
			Code: 0,
			Msg:  "",
			Desc: "",
		},
		QueryParam: query,
		List:       list,
	}
}

func (adapter BundleList[T]) BundleInit() {}

type BundleListSwag struct {
	*BundleBase
	*QueryParam `json:"queryParam"`
	List        []bean.IxBaseEntity `json:"data"`
}

// endregion
